<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/2/24
 * Time: 14:13
 */
class Common_Function{
    /**
     *  中奖后  向用户发送  优惠券  函数
     */
    function setFanJuan($aCode){
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, "http://yxport.ideliver1.cn/ActiveCoupon2.asp?tel=".$_SESSION ['phone'].'&aCode='.$aCode);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_HEADER, 0);
        curl_exec($ch);
    }

}